updated physical quantity to better support dependency injection