Built a half rectifier circuit