added idea for another example
refactoring
added comment in code
added domain plus minor code changes