scala naming convention
Don't use HashMap.{contains,apply} but use get and pattern matching.