adding command pattern

with resources too