Pull Request for Issue620

Just added updates to add getter and setter in the protected section.