added heuristiccost instance variable to part