added a small example for writing modules