rewritting examples as single files
split Example.cpp in individual files