solution for problem nr 50
solution for problem 55