Lab2, Ex5: Added operation hirarchy