final working version
final working version2