used return values for end of code.

Called my functions and returned the values and return statements back
to main code.