Added the code and some template extracte by actual code