Homework assignment #1 for CS 385