javadoc for calculate median in student view