finished the first exercise
finished exercise 2
finished exercise 3
finished exercise 4
finished exercise 5
removed some unused imports
added a safeInit for the duplicate function
finished exercise 6