Finished HW3

It's late, but I finally got the time and finished it.