writing the simplest code