Finished writing and commenting both programs