Lecture 31 - The Major Project, Task2 rewritten as an ADT