Maths class and fixes dome things