opensample code base