Programming assignment for computer science class