lecture notes and hw2