CODE AND OUTPUTS