Issue #27: split stack trace and stack trace elements into separate classes