Homework assignment 2