started implementing findMatches method