Fixed bugs in Exchange and Queue classes