Divided the code in different object files, Added Diag class