created method in appointment model that takes care of that appointment controller index action. All tests still passing.