Added a sub-class to communication for raspberry pi