make CreateContainer function