assigned name member from name param in constructor