Fixed ass2 prob3 code, and pop bug in ass2 prob2