Implemented step 1 of Grammar of Graphics pipeline, added unit test for it.