created a messaes class to hansle messages to the user