making classes compile properly