Implemented shell of print method