Added a very simple print method as an example.