added freakduinos pseudo code