solved some problems from the book