ECS implementation draft

main functionalities implemented