Refactored to improve design of main
Merge branch 'master' of https://github.com/duke-compsci308-spring2014/example_bins