WIP Add rule class and load() function

Tests for load() function