added ex8 (note, find out why line 9 adds another character)