#reader(lib "htdp-beginner-reader.ss" "lang")((modname falling-ball-pair) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ())))
(define WIDTH 320)
(define HEIGHT 480)
(define RADIUS 5)
(define-struct coord (x y))
(define (tick w)
(make-coord (+ (coord-x w) 5)
(+ (coord-y w) 5)))
(define (hits-floor? w)
(>= (coord-y w) HEIGHT))
(define (draw-scene w)
(place-image (circle RADIUS "solid" "red")
(coord-x w)
(coord-y w)
(empty-scene WIDTH HEIGHT)))
(big-bang WIDTH HEIGHT (make-coord 0 0)
(on-tick 1/15 tick)
(on-redraw draw-scene)
(stop-when hits-floor?))