got file input working for book example imp