function overload practise codes