Add if statement to compare if c is equal to d.