testing finished, split code into files