Homework assignment 1 for CS 369