Update for exercise 3

Added casting for ints