added has_many components relationship
added belongs_to user relationship