inheritance by mimicking class using klass