Construct the code base by copying codes crafted in lesson 1 through lesson 4