implement access modifier for classes