check whether recur call in main (a.java) works