added exam's 4th exercise source code (example)