first two questions of solutions done