RAW Second part. Lot of repeated code, but working.