preliminary class setup. not working yet.
trivial changes
3.1 and 3.5 sort of work in Octave but need to be checked on Matlab