code example preface