All Computer Science class homework.