Added implementation for the fourth problem