Added a constructor to the Notification class.