Created class for 'Ball' and included its constructor