Implemented class paradigm and fixed some syntax errors.