create piece class