initial angry children solution - needs to be optimized