added javadoc for calculate area