some exercises

exercises from the book