halfway done with function practice

halfway done with function practice