formatting
use analog gem
formatting
unpack
not needed
formatting
not needed
first pass at simplified structure
check for nil