Move g=5 into the abstract class?