added Magnus version of lab4, task 1 done.