Almost final version of StAB in StAB2 class. Need todo more tests + refactoring.