Avoids asking for standard input everytime.
Implements a naïve REPL (closes #2)