refactor dumb solution to pig_latin
more small refactor