Added correct printing methods to main method.