some changes from ebook tutorial. end of the day 1 (9.19.13)