Self-teaching os implementation