more scheme code (in java)

added into main. works fine but not sure if implemented exactly the way
we want it. We can tweak it to our liking later