adding comment for factory/singleton example