example of an elevator class design