This is another approach i was trying with and is failing please guide me