class for digital pins added