Solution sixth assignment