programming assigment #2 for week #4