Program checks for existence of course and then student. If both exist, the student is added to the course.