How To Implement A Stack Using An Array Of Objects