refactored some code out of lab 1
added introductory material