code for analyzing my KS6 pilot data