Homework assignment for a programming class