added ship method and integration test