check statements of constructor
add a member to check the function definition is constructor and use it