latest update: added basic code