added sample for toMap collector