Supreme Court adopts an ethics code