implementing examples to check concepts