elementary / transit - updated sample code