*** Added the bin files from the handout with slight changes ***