solving different problems found on internet