working calculator code, just tty device