Moved hamlet to separate files