new structure, transfer calculation and memory to separate class