Converted SpeedUnit to enum
 * My inexperience when writing the original code is showing