Class constructor & inheritance