Proper code encapsulation