changed the type of a couple of input parameters to reduce the complexity and number of lines of the examples/module