Refactoring variables in class Livro.php