Interative solution