1. Apache commons libary Dependency added to pom.xml for item2.
2. toString method enhanced using ToStringBuilder.