Add example on printf output method