Added IDs and compareTo comparing IDs
compareTos to compare IDs