Final of Codeacademy Ruby course. Using class and method definitions