constructor instead of static object
added example