Lab5: Errors in mediator pattern