Something I've always loved to do is create hunks of code, or components, that can be reused. It's something I'm trying to push into the culture at PFI, build reusable stuff if you can. I'm finding it difficult to isolate bits that can be reused, so it's nice to find those little gems once in a while. We've been learning about Six Sigma over the past week and we've been using tools to analyze numbers as part of the process. Something we'll use over and over in our decision making are some statistical functions; Median, Mean, and Standard Deviation. I'm sure there will be others but those were the first brought to light in our training. Like most developers I saw an opportunity to create a library of functions we could use in our apps development. After our Wednesday session I sat down and started work on an assembly to work against "Sample Data(n)" of a "Population(N)". I created a SampleData class that accepts an array of Double's, since the data can be any number of items, which has the methods Median(), Mean(), and StDeviation(). I threw Sum() in there as well since I had to create a private sum() method for use with the other calculations. With help from Aymiee(pronounced Amy) we verified the methods work as expected. Neat! This is the first component I've built in a VERY long time and will hopefully grow over time to accommodate other statistical functions.