working final. with two different methods to determine vowel