longestSum method + better seq. sample