Towards spinfoam cosmology