added model.all() functionality