methods added

different examples are wrapped by methods