Break create_contents into seperate method