created types.jl and modified things accordingly