HW4 completed: generating orders from event analysis