Updating histogram.py to incorperate Andrew's changes