Added the getFirstElement method inside the Collection interface.