prototype for queue management system