creating the functionallity of get fields info from book