Factorial & RSM lab

Copied code