Homework assignment 3