Study my recent project
http://latex.xblog.in/?page-mattie