Implementation and tests for sclass blocks.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>