remove nameCompareTo method from example