lab3(ii) now working