remove the global controller syntax and use angular's module syntax in the examples