Goal-driven design in a bio-inspired system