Basic code implemented