#29 enclosung codebase in one anonymous function