add the optimizer and model
Merge pull request #7 from Juwei/master

add the optimizer and model