added pixelData class and some unitTesting