finished problem analisys