added ex6 and tests