Modified constructor with a c-string (student 2)