Adding example with and without boilerplate code