draft 3

changed plot from hist to a quick plot. added apply instead of aggregate