lab2 was added (TODO: multithreading)