Working simulation file for part B

Given correct user input, this works.