Moved Pistons class to a common folder, so it can be used across projects.