Added a divide function