Homework assignment for computer science class