implemented the model for notifications