change class inheritance + change getAttribute behavior