created lab4.cpp to start transitioning to implementation