csp - integration of algorithm with gui