some code for book programbeauty