Header and cpp file working properly