salvaged ex7.go, older examples lost :(