Removed duplicate code
Proper way of calling methods
Proper way of calling methods