Simpler example using Array.map