added mark_as_complete method