added pinyin gem and import function