Added all logic for 2nd task exclude LocalStorage saving. Will be soon.