Modified Notification constructor to accept data as an argument.
Modified constructor of Notification so that the data argument to the constructor is optional