A sample project to understand OOP concepts in java