Add way to initialise attributes with a default value. Make tests pass.