use list instead of data.frame
Merge pull request #3 from jianan/master

use list instead of data.frame