Added spring framework

Added changes in order to give it an different structure in order to
use spring framework