More specifically, the first part of the book was written in Madrid, while the second part was written in Barcelona.