add documented sample code with test data