Working on functioning form of model