Whale implementation