extracted code from tex file, has its own folder now