cleaned up demo gauss example