Worked on printf function