Programming assignment 2

Changed some spacing for readability.