 
   draw_buildings:()->
     position = 0
-    for [1...10]
+    while position < @width
       building = @draw_building(position)
       position = building.end_position() + @padding
 
   draw_building:(x) ->
-    building = new Building(@context)
+    building = new Building(@context, @height)
 
     y = Math.floor(Math.random()*300)
     building.draw(x, y)

  constructor: ->
    @empty = true
    @canvas = document.getElementById "gorillas"
    @context = @canvas.getContext "2d"
    @color = '#00FFFF'
    @padding = 1

class Building
  constructor:(@context, @canvas_height) ->
    @width = 70 + Math.floor(Math.random()*40)
    @base_height = 100
    @randomize_color()

