Added a sample program demonstrating the usage of modules, and updated the sample1 code.