Solved another programming problem