Crated Edge class and modified Entity (now abstract class).