a tutorial for hwaf and mana