created PlayerCharacter class, and converted Dude in example