Added malloc for name,course,snum