removed unneeded constructor
refactored step code into resource class, and renamed resource to representation