Changed visibility of Algorithm.g from private to protected