Import initial code as retrieved from pastebin