start of class for exercise 9
interface for exercise 9
finished exercise 9