Print functionality implemented