added the power program using functions, and also renamed the histogram program to a more specific name