adds attendance model and tests

adds an attendance model and tests for the attendance model.

Let me know if you want me to add anything or change anything