Added/organized a bunch of lecture code