Added optional, filter and command pattern example