create a static method to calculate the digit, so you can do it without having to instantiate an object