Laboratory work No.4 on OOP patterns