Complex sentence: He wrote at night and on weekends, ultimately publishing his first novel, "Plan B," which attracted the attention of an agent, allowing him to leave his job and become a full-time writer.
Split into simpler sentences: He wrote at nights and at weekends, ultimately publishing his first novel, "Plan B". The book attracted the attention of an agent, allowing him to leave his job and become a full-time writer.