PLA code for HW1