Supreme Court makes ethics code