added basic code
added copyright information