added wagon class