Modified code for exercise 4.4, Step 3

Modified code for exerce 4.4, step 3. Now all position values are
computed based on size of the container window and objects.