cpp for lab 4