added exam.java & inpututility.java, need some changes though