Changed Swaraj's code so it calculates inches instead of feet