finished more of the sequence exercises
first part for java interop