add - constructor pattern for object