seperated example into its own class