Working with code to get the Type error out