built out the books controller class, errors still present in testing