Science fiction differs from fantasy in that, within the context of the story, its imaginary elements are largely possible within scientifically established or scientifically postulated laws of nature (though some elements in a story might still be pure imaginative speculation). Exploring the consequences of such differences is the traditional purpose of science fiction, making it a "literature of ideas". Science fiction is largely based on writing entertainingly and rationally about alternate possibilities in settings that are contrary to known reality.