Add createReference sample program