updated piglatin to take inputs