Created a class for the select2 function call