Completed the second question
Completed question 3
Finished the last question by implementing modulus operator for Rationals only.