Lab6 8.1 done (with errors)