added functionality for checking books in and out