This would work, to an extent. In the real world, occasionally books will have the same names as other books. You can always look at other information to identify at that point (author name, publisher name, published date, etc.), but for the sake of simplicity, in real life, there is a unique number that all books have: the ISBN number. While for this project it probably won't matter, just keep this in mind in the future.