Code for pig latin in scala