encapsuled displaying all items from the machine and added foundation for states in machine