Solution to homework 3 - The Human Trebuchet