Fixed abstract class error and revealed a linker error