Added my code to R Peng's template