Adds getContinents()

This commit adds the method and test for getContinents().