Lab 2 scala