Assignment 3 from last semesters class