added factorial class
added factorial class