format exercise output