created the rankGroup class because I rank contained a userID field so it couldn't be the only thing holding the patients in a category