applying header in class compralivro.php