Add LargestAndSmallest class