there is no need to pass the type since we directly instantiate the right class