Turned cart into singleton pattern