Here's the solution to the seconds problem