Converted files to Scala