implemented goodcompany code