refactored code
Merge pull request #77 from sajinidesilva/slots_Imp

refactored code