codes where edited for prog1_b