Second attempt refering to solution