adding continent code as a method