set interMap as new hashMap
Remove previous changes
resolved java nullpointerException at line 60
test program example. still working on.