Malus`s law of light polarization using a Computer