1. Write a class that represents messages. A message has the following attributes: - text: a String - color: a java.awt.Color object - counter: an integer that contains the number of times the message has been used (see below) - the counter is initially set to 0. The message class should have the following methods: - getColor(): a getter that returns the color attribute - getCounter(): a getter that returns the counter attribute - getText(): a getter that returns the message text - each time this is called, the counter should be incremented by one - getSpacedText(): same as getText(), but the message should be returned with spaces between each character, thus "Chris" is returned as "C h r i s" - use a while loop and the .charAt() method from String to implement this 2. Write a test class for class message that tests some of its features: - create a new message containing the text "hello" in red - print the message text to System.out - open a graphical dialog showing the message the same way we did in dialog.java - print the value of the message's counter to System.out