Oops! it seems that I deleted one of the ; symbols by mistake before compiling. I've added it again and now the program compiles with no problems. Thank everybody for your friendly responses and hopefully now I can make some progress in learning Pascal.