Added buy functionality