added ex3 for Tyler