Homework for programming languages course