Added version attribute and methods to sample modules