Coded

still needs comments