added code formatting to more lab3 elements