allowed creation of object from user input