Ripon Leisure Centre ground works will cost £3.5 million