Solve second assignment