Spec let function used