solutions to first 8 problems