Edited definition of second problem