Worked on Nested ifs