Fixed Resolving errors

And introduced PrimitiveType.java