function a = square_list(nums)
    a = [];
    for i = 1:size(nums, 2)
        a = [a, nums(i)^2];
    end
end