Computer science homework assignment