A simple example of Entity factory