Basic methods (from class diagram) programmed