converted everything to spring project and added entities