implementat group has_many machines