add base example code