created new "machine" class