Solve state exercises