Lab 7: location assignment is implemneted