difference and divide implemented