solution for number 5