object orientated programming practice from codeacademy.com