Implemented print functionality

Implemented print functionality