Added method to convert to decimal system