second example: separate tempalate and php code