a better example using module injection