programming assignment 3 initialized.