Exercies for https://www.udacity.com/course/cs373