added ex3 for Justin