Hardy's inequality with weights