basic todos implementation in java