Moved code to eclipse