A3: Code listing