Solution to asignment_7 #11.