Create elevator.c

elevator functions