Apply method returning the object of companion class