Homework for AP-CS pd 2