Update method-two.php

Wrapped in function