This is a sample homework for the course 15214, which is absolutely java-dominated to the max.