Solved issue #1 with forward declartion.