Name: Added method compare.