improved modules example