Transition to print function

Related-bug: #3 (item 1)