3 Layer Architecture In C