actually code is similar to submit version with a few tweaks, but anyways lets start work on lab3