Reformatting sample code