unit1 code

added unit1 code and a lot of imports