Defining default values for attributes and required attributes