Added access modifier and javadoc