Add a constructor which takes appropriate argument.