Now takes input on stdin, prints to stdout