added cache implementation and utilities file for the models. Not tested yet