Translates Section 28.2 Examples in GSL docs