Code for the SEG Project