third solution added