Better print method, and used another way to declare an array.