Resolving the name error