added model methods and tests, controller index and create action and table view