Beginning to ecapsulate behavior inside classes