ex 6
ex 6 with test