sample module

added functions for setting start and end positions