TASK DEFINITION: In this task, five ordered key facts are given. All the given facts are expressed in natural language. Your job is to generate a story 100 to 1000 words long, that includes all the facts given as input in their order of appearance while expanding upon them to produce a broader, yet coherent, narrative.
PROBLEM: Fact1: Harding buys personal computer Seeking way to get organized, Fact2: Miles attempts to download entire database at work, Fact3: Miles In state of uses nearby bottle of champagne to douse overheating machine panic, Fact4: love triangle develops between Miles computer and Miles neighbor, Fact5: Madeline begins to fall in love in spite of ongoing relationship with Bill

SOLUTION: Miles Harding is an architect who envisions a brick shaped like a jigsaw puzzle piece that could enable buildings to withstand earthquakes. Seeking a way to get organized, he buys a personal computer to help him develop his ideas. Although he is initially unsure that he will even be able to correctly operate the computer, he later buys numerous extra gadgets that were not necessary for his work, such as switches to control household appliances like the blender, a speech synthesizer, and a microphone. The computer addresses Miles as Moles, because Miles had incorrectly typed his name during the initial setup. When Miles attempts to download the entire database from a mainframe computer at work, his computer begins to overheat. In a state of panic, Miles uses a nearby bottle of champagne to douse the overheating machine, which then becomes sentient. Miles is initially unaware of the computers newfound sentience, but discovers it one night when he is awakened by the computer in the middle of the night when it mimics Miles talking in his sleep. A love triangle soon develops between Miles, his computer who later identifies himself as Edgar, and Miles neighbor, an attractive cellist named Madeline Robistat. Upon hearing her practicing a piece from Notebook for Anna Magdalena Bach on her cello through an air vent connecting both apartments, Edgar promptly elaborates a parallel variation of the piece, leading to an improvised duet. Believing it was Miles who had engaged her in the duet, Madeline begins to fall in love with him in spite of her ongoing relationship with fellow musician Bill. At Miles request, Edgar composes a piece of music for Madeline. When their mutual love becomes evident, however, Edgar responds with jealousy, canceling Miles credit cards and registering him as an armed and dangerous criminal. Upon discovering this humiliation, Miles and Edgar have a confrontation, leading to Miles shoving the computer and trying to unplug it, getting an electric shock. Then the computer retaliates in a PacMan like game by harassing him with household electronics. Eventually, Edgar accepts Madeline and Miles love for each other, and appears to commit suicide by sending a large electric current through his acoustic coupler, around the world, and back to himself just after he and Miles make amends. Later as Madeline and Miles go on vacation together, Edgars voice is heard on the radio dedicating a song to the ones I love  Together in Electric Dreams. The credits are interspersed with scenes of the song being heard all over California, including a radio station trying to shut it off, declaring that they dont know where the signal is coming from.

PROBLEM: Fact1: Bharthruhari spends most of time with youngest of them and his most favourite, Fact2: people complain to king, Fact3: king decides to find culprit, Fact4: Aswapaalan Through meets Pingala sheer happenstance, Fact5: Vikramadityan puts him in custody in Pingala 's palace

SOLUTION: King Bharthruhari Serkulathur Sama is married to 300 wives. He spends most of his time with the youngest of them and his most favourite, Pingala B. Jayamma. The chief groom of the kings horses, Aswapaalan N. S. Krishnan resorts to thievery to satisfy the needs of his mistress, Sundari T. A. Madhuram. The people who were robbed complain to the king, who decides to find the culprit and punish him. Through sheer happenstance, Aswapaalan meets Pingala and both start having an affair without the kings knowledge. Vikramadityan G. Pattu Iyer, the kings brother, catches Aswapaalan one night and puts him in custody in Pingalas palace. To escape from the situation lest her affair with Aswapaalan is discovered, complains to Bharthruhari that Vikramadityan tried to seduce her, which Vikramadityan denies. The king immediately banishes Vikramadityan without looking into the matter properly. Later, the king realises that his younger brother was telling the truth when he sees Aswapaalan and Pingala together. Shocked and aggrieved, he gives up his throne, brings Vikramadityan back and crowns him as the new king. Bharthruhari then becomes a hermit and retires to the forest to do penance.

PROBLEM: Fact1: Amarendra Baahubali After is declared as future king of Mahishmati and Bhallaladeva vanquishing Kalakeyas, Fact2: Devasena approaches her Falling in love with her, Fact3: Bhallaladeva receives message of Amarendra 's act and upon viewing Devasena 's portrait, Fact4: Rajamata was unaware of Amarendra 's feelings for Devasena, Fact5: Kumara Varma enters palace in stealth of night only to be discovered by Bhallaladeva and be killed but not before revealing plot to convince Sivagami to kill Amarendra

SOLUTION:
Kattappa continues to narrate how he ended up killing Amarendra Baahubali. After vanquishing the Kalakeyas, Amarendra Baahubali is declared as the future king of Mahishmati and Bhallaladeva its commanderinchief. The Rajamata Sivagami orders Amarendra to tour the kingdom and its neighbourhood, along with Kattappa. During the tour, Amarendra witnesses an attack by Devasena, the princess of Kuntala, a kingdom neighbouring Mahishmati. Falling in love with her, he approaches her after the fight, posing as a simpleton, and is accepted into the royal palace for a job. Bhallaladeva receives message of Amarendras act and upon viewing Devasenas portrait, lusts for her. He asks Sivagami for Devasenas hand in marriage. The Rajamata, who was unaware of Amarendras feelings for Devasena, assures Bhallaladeva and sends an emissary to Kuntala, who delivers the marriage proposal in a patronising way. An insulted Devasena rejects the proposal with a scathing reply. Enraged hearing her response, Sivagami sends an order to Amarendra that Devasena be brought to Mahishmati as a captive. Meanwhile, Kuntala is attacked by Pindaris, a dacoitlike army. Amarendra, with the help of Devasenas maternal cousin, Kumara Varma, is able to nullify the attack and save Kuntala. Upon being questioned, Amarendra reveals his true identity. He receives a bird post from Mahishmati, ordering him to take Devasena as captive. He promises Devasena that he will protect her honour and convinces her to come with him to Mahishmati as his future bride. Upon reaching Mahishmati, the misunderstanding is brought to light and when an ultimatum is delivered to Amarendra that he must either choose the throne or Devasena, he chooses the latter. Bhallaladeva is crowned king and Amarendra is made the new commanderinchief. During Devasenas baby shower, Bhallaladeva rids Amarendra of his duties as a gift. Devasena speaks out against Sivagamis inaction and taunts Bhallaladeva. Due to further clashes, Amarendra and Devasena are banished from the royal palace, living happily among the people. Bijjaladeva convinces Kumara Varma that Bhallaladeva is after Amarendras life and he must kill the king to safeguard his brotherinlaw. Kumara Varma enters the palace in the stealth of the night, only to be discovered by Bhallaladeva and be killed, but not before revealing their plot to convince Sivagami to kill Amarendra. Sivagami, convinced that Bhallaladevas life is under threat but that open hostility would result in civil war, orders Kattappa to assassinate Amarendra. Kattappa, bound by his word to serve the Queen, lures Amarendra by feigning he is in trouble, and then stabs him in the back and kills him. After Amarendras death, Kattappa soon learns of Bhallaladevas treachery and informs Sivagami, who reveals to the panicked hordes outside her palace that Amarendra is dead and that the baby Mahendra Baahubali has ascended the throne. As Bhallaladeva and his men are about to seize the queen, she flees with the new King but falls into a river after being hit by an arrow shot by Bhallaladeva. As Bhallaladeva holds Devasena prisoner for the next 25 years and destroys Kuntala, Mahendra grows up and leads the rebel group that has indulged in guerrilla warfare against King Bhallaladeva. After listening to the whole story, Mahendra Baahubali alias Sivudu decides to avenge his fathers death by raising his own army with the help of Kattappa and returns to Mahishmati along with Avantika and the people of the city. After an ensuing battle, Bhallaladeva is defeated by Mahendra and burnt alive on a pyre prepared by Devasena. Ending the cruel regime of Bhallaladeva, Mahendra becomes the new King with Avantika as his queen, bringing peace and harmony to Mahishmati.