Building a nested routes function - a fun exercise