Exercises from the book written by Andrei Alexandrescu