Adaptive solution finished v1.0