Added print functionality

Added print functionality