Add 'mark_complete' method to Task model