Avoid using Object.create and simplified the constructor