Added RTTI by adding a GetType function to the Object class