added code to display error if attempts to divide by 0