Homework help with example from class.