added activemodel modules to be able to create forms with form_for
count methods for model and relationship