Undefined reference fixed