How to teach your dogs smartly