Main entities defined and implemented.