Calling the constuctor with data
Use a flag to control if internal properties should be hidden