Hw 2, task 2 (local network with tests) (DONE)