Added Attempt model with tests.