Make battery level a class member