write a simple little factorial