Chayefsky went to Hollywood in 1947 with the aim of becoming a screenwriter. His friends Garson Kanin and Ruth Gordon found him a job in the accounting office of Universal Pictures. He studied acting at the Actor's Lab and Kanin got him a bit part in the film "A Double Life". He returned to New York, submitted scripts, and was hired as an apprentice scriptwriter by Universal. His script outlines were not accepted and he was fired after six weeks. After returning to New York, Chayefsky wrote the outline for a play that he submitted to the Wiilliam Morris Agency. The agency, treating it as a novella, submitted it to Good Housekeeping magazine. Movie rights were purchased by Twentieth Century Fox, and Chayefsky was hired to write the script, and he returned to Hollywood in 1948. But Chayefsky was discouraged by the studio system, which involved rewrites and relegated writers to inferior roles, so he quit and moved back to New York, vowing not to return.