Asg4 Problem1: Fixed output format