user defined functions in c++ part 2