configured model, wrote GET/POST methods and tests.