function o = ps2(pnum)
cs = [0, 3; 0, 4; 0, 4];
ps = [1 2 8; 2 3 4; 1 3 5];
switch pnum
    case 1
        D = cluster_points_distance(cs, ps)
    case 2
        mems = cluster_members(cs, ps)
    case 3
        mems = cluster_members(cs, ps);
        csnew = update_centers(ps, mems)
    case 4
        [cs_final, mems_final] = k_means_initialized(cs, ps, 10)
    case 5
        I = imread('peppers.png');
        J = quantize_image(I, 16);
        figure;
        imshow(J)
end