working on simple impleentations of the machines