I will put java code here