Sketched out the VM simulator program in Scala.