Encapsulation: importance of the principle and how it is implemented via access modifiers and appropriate methods