added codes for MapWritable, however, still not pass the test successfully