changed constructor for Message class and added public static enum