change the code so that it is importable