added print functionality to the design