Finished HW2

Finally done after two weeks!