New gun law takes effect