Changed output and periods according to task 5