peregrine was clearly very encouraged by the success of this novel , and this encouraged a great change of direction where he started writing a series of science fiction and science fantasy trilogies .