Implemented Command Pattern

d