gp function

Create a new GP object