2013 csc171 lab1 09/12 revised with dialog