Lab-3: automate the operations