jaydip added constructor patter and jade templates