Starting on fixing stack error