added some class stuff for the alignment alg and usagee of variables