Added Pieces class and added getId in user class