solution for tutorial #2

does some stuffs
addition to solution for t2 throws upon err