implementation of private properties with examples