Loops. First fully working version.
Example file for tests