Added first iteration of second solution