The beauty of the beach and its explanation