greater function refactored. left hand right hand mapping code added to
the Transformer class