Encapuslated the idea into Class