output for sample 1 and sample 2 is correct now so now we just have to have the virtual machine use the mcode