give initial value to some member variables in constructor.