Solution second assignment