my attempts at str2long