moved imprt from file to main so GP accepts a matrix argument