puts inner method under "protected" key word