Add Lab code up to Lab 4

With "TODO" comments on functions that need to be implemented