Gray pens deal at Glasgow