Added factories, using let in Brian's example