Homework for graphics class