Create Midterm - How to write a class