copy of template
Added derivation of p(x)
Merge pull request #4 from GavinMendelGleason/master

Derivation of p(x)