Homework 1 for OOP in Javascript.