create_container function