initial work on longest oreo function