refactored aggregate creation into eventstore class