Refactor the functions rmeoving echo and using return
Refactor the functions to return FALSE if division by zero