added newDynamicInstance function to classloader
implemented DynObj using scala reflection API