added has_many belongs_to relationships
added pages controller