Fix bug

- Added basic ruby program structure
- removed unnecessary method
- Used object oriented approach