Assignment 4 from last semesters class