solution to last problem