Compiles apart from the studio, really need to work out where to use ints and where to use strings having now mullered this