add Divide function

Would you please review this new function?