Created dynamic class at runtime and added two methods and property