first chapter solution.