defined the problem for problem number 3