write continent_hash method based on other two methods