add closure and module pattern examples