Add coordinate model. fixed #20
Modify models, and fixed test.