Added first pass at IR in scala