solve up to number 4