OK, I solved problems 1 and 3 too :-) I apologize for wasting list participants' time. -- Milos Prudek