Tried to get rid of linker error but was not successful