Updated constructor with string argument