Homework for csci 338