sample code based on early project rosalind problems