In-class assignment 2 and HW 2