Control system design of an Elevator