added and [partially] implemented elevator struct and functions