A sphere of radius R carries a charge of volume charge density ρ ar, where a is a constant and r denotes the distance from the centre of the sphere. Calculate the total charge enclosed by the sphere and the electric field at points lying inside and outside the sphere.