Added ability to construct classes from memory