Update Task_5.cs

add new method