Codes for the geos exercise.