Homework for CS3013