OOP exercise for BML