added code to take()

yo does this work?
also compareTo needs to be defined