Business logic layers added and re-factored the code.