add a basic print function