solve problem#16