finished pty example