Add 1/x operation

Also fixed a bug in Factorial
Add buttons and their actions for new classes

Also fixed new classes implementation