updated main.cpp following the redefined MatchingViewer class