removed vector class and trig functions