Examples and code from lab8 for group 2 and 3