second solution