Notes from first principles.