Refactoring pointSquare and ball into seperate objects