added nested behaviour example
added nested behavior functionality