beating STDIO on tests 1-6