Assignment 5 from last semesters class