so tired, I got a lot of the homework stuff done though. sub problem generate correct answers now (via mysql database) use of eval is not as bad as usual here