clean up addMyBook function for greater legibility