Improved 1-13 and 1-14

Factored out print_histogram and scale_ints functions to use in both.