created a brand and product controller and added the relevant lines to the routes file