seems like everything works correctly, stops at the right time and can solve multiple problems with one programming