inital pass at findMode.cpp