Add 3 functions to check what operation need
Requirement 3 / Assignment 2 [DONE