Using properties to add behavior to class data