partial hw2 and lecturenotes