Type matching constructor argument

Added type matching constructor argument.