Created AbstractModel and edited spring