CS1101 Homework