implemented multiply and divide