Added snippets for ex4