Solution of Lab 7 exercises.