minor modifications of make exmaple 2-1 compile as a module