almost done with second example; need to finish with compilation