Code for BASM class demos