module function for namespaces and Haskell-like example