added code for compareTo in Data.cs