added print redirection example