Uploaded Logic.java

function to add, delete and update tasks