Added sample for reading and writing features