Decode Ways - version 1