9

Could be further optimized..