Completed InOrderSuccessor, added examples of adapter and factory
pattern