solved forth task of kv store