Create basics1.cpp

Splitting code into multiple files for easier readability as the program grows.