second commit - started method for converting single -p bin to dec