Made LGVector a class instead of struct