Coding exercise using codeigniter