removed 3 duplicate IF statements. now have 7 IF statements as
instructed in example. correct output.