added price to devices, changed grades to decimal, added best_in_place