C3 mohamed task2

@mohamedahmedawad93 please review my code