Dog learns how to use a whistle