reference and sampleapp