add hw7 scala is strange :(