Thank you everyone for your assistance. I realised also that the problem was with my own logic. Writing the problem out with pen and paper was what helped me. Thanks for your time and assistance. Tim