Added buy method in Hero Class