Code for Justin's ABM project