New code added in Sample.java