added template exercise php and test code