added ex. 3 and part of ex. 4