began to work on re-usable inline definitions (for built-in losses etc.)