Another attempt, still not there.
Not complete, but started problem 24