Added decode ways solutin