solution with no nested_attributes_for