updated example code based on simplified module.