Defined helper and model for attendance