Creating an object based on a function's parameter

welcome to shbcf.ru