Simulator for CS70 HW3 Q2