Finished examples 2 and 3