created transaction class and test