Integer fractions: refactor
Refactor operateOnMemory method
Refactor switch case statement