Obligatory gradient
Simple context detection
Stubs for tests
Simple tests for context detection