Create exercise3

Complete the code snippet