changed some public methods to private ones as they had no reason to be
public methods
Added search and sort functionality in the main class