ex1 fully working