changed plan model to put has_many in diff lines