First half of ADAM tutorial.