Design and control of an AS/RS