added a main method to demonstrate the three-arg constructor and toString() method