Runs in REPL but needed main