Change keyword "def" to "let" to unify syntax