Solution of ex07 including codes.