Adding a convenience method to set multiple attributes at once