Complete histogram exercise in hw3