Corrected the pointer issues in class!