"created" function used to prevert shared state of object properties