A Compass implementation of Sergii Rudchyk's template