MTA homework. No error checking