Added some logic to the constructors and created a run method
Added some logic to the constructors and created a run method