Added a resouce framework and crude metal with inheritance