Created a print function