implemented reading and writing group.