Add hw3

code, unit test and graph