implementing commandEntities

may need some help
impelmenting commandEntities