added method typeof to Klass