Object-oriented programming practice