Create class_constructor_pattern.js

Add class constructor pattern