added task 4, Ball class