CNS187: Finished hw6 problem 1.1, 1.2, 2.1.