Revert "modified layer groups and added example"

This reverts commit ef4bf043630fa362485eabae9d7840a6be48de7b.