practising math, strings, functions
functions for exercise 25
corrected errors