implement elevator class