big10p #1 Good luck writing the 'solve' function - you'll need it! :P[edit]actually forget that. As soon as I posted, a way of doing it occured to me. :)