Assignment 2 from last semesters class