Code created in class for PIC 10A at UCLA